/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dale2507.gates.configurator.ui.components;

import javax.swing.JComboBox;
import org.bukkit.Material;

/**
 *
 * @author Dale
 */
public class MaterialSelector extends JComboBox<Material> {
    
    public MaterialSelector() {
        this(new Material[0]);
    }

    public MaterialSelector(Material[] material) {
        this.setMaterials(material);
    }
    
    void setMaterials(Material[] material) {
        this.setModel(new MaterialModel(material));
    }

    public String getTypeId() {
        throw new UnsupportedOperationException("Not yet implemented");
    }
    
}
